package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.InventoryOut;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InventoryOutMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(InventoryOut record);

    int insertSelective(InventoryOut record);

    InventoryOut selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InventoryOut record);

    int updateByPrimaryKey(InventoryOut record);

    int countOut(@Param("categoryId") String categoryId,
                 @Param("search") String search);

    List<Map<String, Object>> listOutDetail(@Param("categoryId") String categoryId, 
                                            @Param("start") Integer start, 
                                            @Param("size") Integer size,
                                            @Param("search") String search);

    //批量保存出库明细
    int saveInventoryOutList(List<InventoryOut> outList);
}